tools-rpath.diff
authorBastian Blank <waldi@debian.org>
Sat, 5 Jul 2014 09:46:51 +0000 (11:46 +0200)
committerIan Campbell <ijc@debian.org>
Tue, 9 Feb 2016 16:41:16 +0000 (16:41 +0000)
Patch-Name: tools-rpath.diff

Gbp-Pq: Name tools-rpath.diff

tools/Rules.mk

index 2c422bde9bc64ee833dcef01f86e579784e3885b..8ea20a32a7f0d65ce13bdd78b03e880681f969b0 100644 (file)
@@ -9,6 +9,8 @@ include $(XEN_ROOT)/Config.mk
 export _INSTALL := $(INSTALL)
 INSTALL = $(XEN_ROOT)/tools/cross-install
 
+LDFLAGS_RPATH = -Wl,-rpath,'$${ORIGIN}$(if $(1),/$(1))'
+
 XEN_INCLUDE        = $(XEN_ROOT)/tools/include
 XEN_LIBXC          = $(XEN_ROOT)/tools/libxc
 XEN_XENLIGHT       = $(XEN_ROOT)/tools/libxl